<% content_for :page_head do %>
  <h1>新建版本标签</h1>
<% end %>

<% form_for @tag do |f| %>
  <%= f.error_messages %>

<p>
  <label for="project_id" id="refer">项目:</label><br />
  <%= f.select(:project_id, Project.get_unfrozen_projects.collect {|p| [ p.name, p.id ] }, { :include_blank => false }) %>
</p>

<p>
  <label for="name" class="label">标签名:</label><br />
  <%= f.text_field :name %>
</p>

<p>
  <label for="should_release_at" class="label">版本计划发布时间:</label><br />
  <%= f.datetime_select(:should_release_at) %>
</p>

<p>
  <%= f.submit "创建标签" %>
</p>
<% end %>